#include "PropertyEditor.h"

PropertyEditor::PropertyEditor(QWidget *parent)
    : QTreeWidget(parent)
{
    setMinimumSize(QSize(200, 200));
    setStyleSheet(tr("background-color: rgb(255, 255, 255);\n"
                     "alternate-background-color: rgb(200, 255, 255);\n"));
    setAlternatingRowColors(true);

    QHeaderView *mpheader = header();
    mpheader->setDefaultSectionSize(100);
    mpheader->setMinimumSectionSize(20);

    QTreeWidgetItem *mpheaderItem = headerItem();
    mpheaderItem->setText(0, tr("Property"));
    mpheaderItem->setText(1, tr("Value"));
}

PropertyEditor::~PropertyEditor()
{
}
